package com.gitee.sop.admin.controller.serve.notify.param;

import com.gitee.fastmybatis.core.query.Operator;
import com.gitee.fastmybatis.core.query.annotation.Condition;
import com.gitee.fastmybatis.core.query.param.PageParam;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 查询表单
 *
 * @author thc
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class NotifyInfoSearchParam extends PageParam {
    private static final long serialVersionUID = 1L;

    /**
     * app_id
     */
    @Condition(operator = Operator.like)
    private String appId;

    /**
     * api_name
     */
    @Condition(operator = Operator.like)
    private String apiName;

    /**
     * api_version
     */
    @Condition(operator = Operator.like)
    private String apiVersion;

    /**
     * 最近一次发送时间
     */
    @Condition
    private LocalDateTime lastSendTime;

    /**
     * 下一次发送时间
     */
    @Condition
    private LocalDateTime nextSendTime;

    /**
     * 最大发送次数
     */
    @Condition
    private Integer sendMax;

    /**
     * 已发送次数
     */
    @Condition
    private Integer sendCnt;

    /**
     * 发送内容
     */
    @Condition(operator = Operator.like)
    private String content;

    /**
     * 状态,1-发送成功,2-发送失败,3-重试结束
     */
    @Condition
    private Integer notifyStatus;

    /**
     * 失败原因
     */
    @Condition(operator = Operator.like)
    private String errorMsg;

    /**
     * 备注
     */
    @Condition(operator = Operator.like)
    private String remark;

    @Condition
    private LocalDateTime addTime;

    @Condition
    private LocalDateTime updateTime;

    /**
     * 创建人id
     */
    @Condition
    private Long addBy;

    /**
     * 修改人id
     */
    @Condition
    private Long updateBy;


}
